package cn.layku.web.service.member;

import cn.layku.web.service.member.fallback.MemberFallback;
import cn.layku.web.util.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


@FeignClient(name = "${gateway.member.name}", path = "${gateway.member.path}", url = "${gateway.host}", fallback = MemberFallback.class)
public interface MemberService {

    @PostMapping(value = "/member/add")
    ApiResult<Object> add(@RequestParam Map<String, Object> map);

    @PostMapping(value = "/member/update")
    ApiResult<Object> update(@RequestParam Map<String, Object> map);

    @PostMapping(value = "/member/get")
    ApiResult<Map<String,Object>> get(@RequestParam("memberId") Integer memberId);

}
